home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Comm / AmiTCP30b2.lha / netinclude / unistd.h < prev    next >
C/C++ Source or Header  |  1994-04-07  |  2KB  |  80 lines

  1. #ifndef UNISTD_H
  2. #define    UNISTD_H
  3. /*
  4. **      $Filename: unistd.h $
  5. **    $Release$
  6. **      $Revision: 3.5 $
  7. **      $Date: 1994/04/07 20:23:52 $
  8. **
  9. **    Usergroup.library and bsdsocket.library function prototypes
  10. **        for 32 bit C compilers
  11. **
  12. **    Copyright © 1993 AmiTCP/IP Group, <AmiTCP-Group@hut.fi>
  13. **                  Helsinki University of Technology, Finland.
  14. **                  All rights reserved.
  15. */
  16.  
  17. #ifndef SYS_TYPES_H
  18. #include <sys/types.h>
  19. #endif
  20. #ifndef SYS_TIME_H
  21. #include <sys/time.h>
  22. #endif
  23.  
  24. gid_t getegid(void);
  25. uid_t geteuid(void);
  26. gid_t getgid(void);
  27. int   getgroups(int, gid_t []);
  28. char *getlogin(void);
  29. uid_t getuid(void);
  30. int   isatty(int);
  31. int   setgid(gid_t);
  32. int   setuid(uid_t);
  33. char *ttyname(int);
  34. pid_t getpid(void);
  35. pid_t setsid(void);
  36. void  sleep(unsigned int);
  37. mode_t umask(mode_t);
  38.  
  39. int __dup(int);
  40. int __dup2(int, int);
  41.  
  42. #define dup   __dup
  43. #define dup2  __dup2 
  44.  
  45. #ifndef    _POSIX_SOURCE
  46. pid_t getsid(void);
  47. mode_t getumask(void);
  48.  
  49. #if 0
  50. int   getdtablesize(void);
  51. long  gethostid(void);
  52. int   gethostname(char *, int);
  53. #endif
  54. int   select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
  55. void  sethostid(long);
  56. int   sethostname(const char *, int);
  57. int   rcmd(char **, int, const char *, const char *, const char *, int *);
  58. int   ruserok(const char *, int, const char *, const char *);
  59. int   rresvport(int *alport);
  60.  
  61. char *crypt(const char *, const char *);
  62. char *getpass(const char *);
  63. char *getusershell(void);
  64.  
  65. int   initgroups(const char *, gid_t);
  66. int   setgroups(int, const gid_t []);
  67. int   setlogin(const char *);
  68. int   setregid(gid_t, gid_t);
  69. int   setreuid(uid_t, uid_t);
  70. int   setrgid(gid_t);
  71. int   setruid(uid_t);
  72. int   setegid(gid_t);
  73. int   seteuid(uid_t);
  74. void  setusershell(void);
  75. int   ttyslot(void);
  76. void  usleep(unsigned int);
  77. #endif /* !_POSIX_SOURCE */
  78.  
  79. #endif /* !_UNISTD_H_ */
  80.